﻿using System;
using System.Runtime.CompilerServices;
using AutoR.Helpers;
using LiteDB;
using Prism.Mvvm;

namespace AutoR.Models
{
	// Token: 0x020001EF RID: 495
	public class UserItem : BindableBase
	{
		// Token: 0x1700032B RID: 811
		// (get) Token: 0x06000AF2 RID: 2802 RVA: 0x0006CE94 File Offset: 0x0006B094
		// (set) Token: 0x06000AF3 RID: 2803 RVA: 0x0006CE9C File Offset: 0x0006B09C
		public int itemCid
		{
			[CompilerGenerated]
			get
			{
				return this.<itemCid>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (this.<itemCid>k__BackingField == value)
				{
					return;
				}
				this.<itemCid>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.Name);
				this.OnPropertyChanged(<>PropertyChangedEventArgs.itemCid);
			}
		}

		// Token: 0x1700032C RID: 812
		// (get) Token: 0x06000AF4 RID: 2804 RVA: 0x0006CED4 File Offset: 0x0006B0D4
		// (set) Token: 0x06000AF5 RID: 2805 RVA: 0x0006CEDC File Offset: 0x0006B0DC
		public int num
		{
			[CompilerGenerated]
			get
			{
				return this.<num>k__BackingField;
			}
			[CompilerGenerated]
			set
			{
				if (this.<num>k__BackingField == value)
				{
					return;
				}
				this.<num>k__BackingField = value;
				this.OnPropertyChanged(<>PropertyChangedEventArgs.num);
			}
		}

		// Token: 0x1700032D RID: 813
		// (get) Token: 0x06000AF6 RID: 2806 RVA: 0x0006CF09 File Offset: 0x0006B109
		[BsonIgnore]
		public string Name
		{
			get
			{
				return Extensions.ConvertItemName(this.itemCid);
			}
		}
	}
}
